package com.bdth.mixapi.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 睡眠平均心率与入睡时间关系统计
 * </p>
 *
 * @author LGP
 * @since 2019-04-15
 */
@TableName("jk_heart_rate_sleep")
public class HeartRateSleep implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 性别，取值：1-男性，2-女性
     */
    private Integer gender;

    /**
     * 入睡钟点，取值范围：8-24，统计该钟点的前后半个小时期间的数据
     */
    private Integer sleepTime;

    /**
     * 睡眠平均心率
     */
    private Integer heartRate;

    /**
     * 统计日期
     */
    private LocalDate statisticDate;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }
    public Integer getSleepTime() {
        return sleepTime;
    }

    public void setSleepTime(Integer sleepTime) {
        this.sleepTime = sleepTime;
    }
    public Integer getHeartRate() {
        return heartRate;
    }

    public void setHeartRate(Integer heartRate) {
        this.heartRate = heartRate;
    }
    public LocalDate getStatisticDate() {
        return statisticDate;
    }

    public void setStatisticDate(LocalDate statisticDate) {
        this.statisticDate = statisticDate;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "HeartRateSleep{" +
        "id=" + id +
        ", gender=" + gender +
        ", sleepTime=" + sleepTime +
        ", heartRate=" + heartRate +
        ", statisticDate=" + statisticDate +
        ", createTime=" + createTime +
        "}";
    }
}
